<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>商户管理|<{$configcache['Title']}></title>
    <link rel="stylesheet" type="text/css" href="__CSS__/content.css"  />
    <link rel="stylesheet" type="text/css" href="__CSS__/public.css"  />
    <script type="text/javascript" src="__JS__/jquery.js"></script>
    <script type="text/javascript" src="__JS__/Public.js"></script>
    <script type="text/javascript" src="__JS__/winpop.js"></script>
    <script type="text/javascript" src="__JS__/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="__JS__/PCASClass.js"></script>
    <style type="text/css">
        .select{padding:5px 10px;border:#ddd 1px solid;border-radius:4px;width:60%;margin:5% auto;font-size:12px}
        .select li{list-style:none;padding:10px 0 5px 100px}
        .select .select-list{border-bottom:#eee 1px dashed}
        .select dl{zoom:1;position:relative;line-height:24px;}
        .select dl:after{content:" ";display:block;clear:both;height:0;overflow:hidden}
        .select dt{width:100px;margin-bottom:5px;position:absolute;top:0;left:-100px;text-align:right;color:#666;height:24px;line-height:24px}
        .select dd{float:left;display:inline;margin:0 0 5px 5px;}
        .select a{display:inline-block;white-space:nowrap;height:24px;padding:0 10px;text-decoration:none;color:#039;border-radius:2px;}
        .select a:hover{color:#f60;background-color:#f3edc2}
        .select .selected a{color:#fff;background-color:#f60}
        .select-result dt{font-weight:bold}
        .select-no{color:#999}
        .select .select-result a{padding-right:20px;background:#f60 url("__PUBLIC__/image/close.gif") right 9px no-repeat}
        .select .select-result a:hover{background-position:right -15px}
        .tc{text-align:center; text-indent:0;font-family:"微软雅黑";font-size: 14px;color:#111;}
        #content .atext { width:100px; height:24px; line-height:24px;border:solid 1px #ccc; font-family:"宋体"; }
    </style>
    <script>
        function myBrowser(){
            var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
            var isOpera = userAgent.indexOf("Opera") > -1;
            if (isOpera) {
                return "Opera"
            }; //判断是否Opera浏览器
            if (userAgent.indexOf("Firefox") > -1) {
                return "FF";
                /*firefox----这段js重新封装了event对象，经验证可以在火狐下支持！----*/
                function __firefox(){
                    HTMLElement.prototype.__defineGetter__("runtimeStyle", __element_style);
                    window.constructor.prototype.__defineGetter__("event", __window_event);
                    Event.prototype.__defineGetter__("srcElement", __event_srcElement);
                }
                function __element_style(){
                    return this.style;
                }
                function __window_event(){
                    return __window_event_constructor();
                }
                function __event_srcElement(){
                    return this.target;
                }
                function __window_event_constructor(){
                    if(document.all){
                        return window.event;
                    }
                    var _caller = __window_event_constructor.caller;
                    while(_caller!=null){
                        var _argument = _caller.arguments[0];
                        if(_argument){
                            var _temp = _argument.constructor;
                            if(_temp.toString().indexOf("Event")!=-1){
                                return _argument;
                            }
                        }
                        _caller = _caller.caller;
                    }
                    return null;
                }
                if(window.addEventListener){
                    __firefox();
                }
            } //判断是否Firefox浏览器
            if (userAgent.indexOf("Chrome") > -1){
                return "Chrome";
            }
            if (userAgent.indexOf("Safari") > -1) {
                return "Safari";
            } //判断是否Safari浏览器
            if (userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera) {
                return "IE";
            }; //判断是否IE浏览器
        }
    </script>
</head>
<body>
<div id="content">
    <h1>首页 > 客户管理 > 区域代理合同审核</h1>
    <h2>
        <div class="h2_left">
            <a href="__ACTION__" class="whole">全部</a>
            <a href="javascript:;" class="f5" onclick="f5();">刷新</a>
            <a href="javascript:history.back();" class="Retreat">后退</a>
            <a href="javascript:history.go(1);" class="Advance">前进</a>
        </div>
    </h2>
    <table id="table" border="1" bordercolor="#CCCCCC" cellpadding="0" cellspacing="0">
        <input type="hidden" name="userId" value="<{$userId}>">
        <input type="hidden" name="name" value="<{$checkName}>">
        <tr>
            <th>公司名</th>
            <th>用户昵称</th>
            <th>真实姓名</th>
            <th>手机号</th>
            <th>提交审核时间</th>
            <th>审核状态</th>
            <th>操作</th>
        </tr>
        <volist name="local" id="vo">
            <tr>
                <td style="text-align:center" class='tc'><{$vo.companyName}></td>
                <td style="text-align:center" class='tc'><{$vo.userNickName}></td>
                <td style="text-align:center" class='tc'><{$vo.userRealName}></td>
                <td style="text-align:center" class='tc'><{$vo.userTelephone}></td>
                <td style="text-align:center" class='tc'><{$vo.createTime}></td>
                <td class='tc' style="text-align:center">
                    <switch name="vo.checkStatus">
                    <case value="0">审核失败</case>
                    <case value="1">待审核</case>
                    <case value="2">审核通过</case>
                    <default />缺少参数
                    </switch>
                </td>
                <td class='tc' style="text-align:center">
                    <switch name="vo.checkStatus">
                        <case value="1">
                            <a href="__APP__/Client/checklist?sid=<{$vo.sid}>" class="look" style="margin-right: 5px;">查看资料</a>
                            <button href="<{$vo.sid}>" class="pass" style="margin-right: 5px;" >审核通过</button>
                            <a href="__APP__/Client/checknopass/sid/<{$vo.sid}>/userId/<{$userId}>/name/<{$checkName}>" class="nopass" style="margin-right: 5px;" >审核不通过</a>
                            <a href="__APP__/Client/checkrecord?sid=<{$vo.sid}>" class="record" id="update" style="margin-right: 5px;" >审核记录</a>
                        </case>
                        <case value="2">
                            <a href="__APP__/Client/checklist?sid=<{$vo.sid}>" class="look" style="margin-right: 5px;">查看资料</a>
                            <a href="__APP__/Client/checkrecord?sid=<{$vo.sid}>" class="record" id="update" style="margin-right: 5px;" >审核记录</a>
                        </case>
                        <case value="0">
                            <a href="__APP__/Client/checklist?sid=<{$vo.sid}>" class="look" style="margin-right: 5px;">查看资料</a>
                            <a href="__APP__/Client/checkrecord?sid=<{$vo.sid}>" class="record" id="update" style="margin-right: 5px;" >审核记录</a>
                        </case>
                    </switch>
                </td>
            </tr>
        </volist>
    </table>
    <div id="page">
        <{$page}>
    </div>
</div>
</body>

<script>
    //通过
    $('.pass').click(function(){
        if (!confirm('是否通过?')) {
            return false;
        }
        var sid=$(".pass").attr('href');
        var userId=$("input[name=userId]").val();
        var name=$("input[name=name]").val();
        var status=2;
        $.ajax({
            type: "POST",
            url: "__APP__/Client/checkpass/",
            data: {sid :sid,userId:userId,name:name,status:status},
            success: function(msg){
                location.reload();
            },
            error:function(){
                alert('网络异常!');
            }
        });
    })

</script>
</html>
